<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system/"%>
<%@ include file="/common/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>美瀛商旅网</title>
<link href="${ctxPath}/style/international_ticket.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	function mealOrder(url){
		var tips=false;
		if(!tips){
			tips="您确定要改签当前时间吗？";
		}
		if(confirm(tips)){
			location.href=url;
			alert("改签申请中");
		}
	}
</script>
</head>
<body>
	<div id="ticket_list">
	<ul class="ticket_list_title" style="font-size:14px "><font color="#798DAE">&gt;&gt;&nbsp;美瀛机票订单查询</font>&nbsp;&nbsp;<a href="${ctxPath}/member/order/orders.do"><img src="${ctxPath}/image/public/backtrack.gif" align="absmiddle"/>[返回]</a>
    </ul>
	<div id="check_see">
<div id="check_top">
    <div id="content_c">
    <li class="w100">订单号：<strong>${bOrder.orderNo }</strong></li>
   <li class="w100">未支付金额：<strong style="color:#F36">¥${bOrder.noPay }</strong></li>
   <li class="w100">订单状态：
   <strong>
		<fmt:message key="bOrder.status${bOrder.status }"></fmt:message>
   </strong>
		<system:memberOperateTag value="${bOrder.status}" orderId="${bOrder.id}" showStyle="detail"/>
   </li>
    <div id="clear"></div>
    </div>
</div>
	<div id="check_flight">
    	<div id="title_c">
            <li class="f140">航空公司</li>
        	<li class="f40">航班号</li>
            <li class="f30">舱位</li>
            <li class="f30">机型</li>
            <li class="f100">航班时间</li>
            <li class="f100">起降机场</li>
            <li class="f80">里程</li>
            <li class="f60">飞行时间</li>
            <li class="f30">经停</li>
            <div id="clear"></div>
     	</div>
     	
     	
     	<c:if test="${not empty bOrder.flights}">
			<c:forEach var="flight" items="${bOrder.flights}" >
				<div id="content_c">
		            <li class="fc140"><img src="${ctxPath}/resource/front/image/international_ticket/${fn:substring(flight.code,0,2)}.gif" />${flight.flightName}</li>
		            <li class="fc50">${flight.code}</li>
		            <li class="fc30">${flight.cabin}</li>
		            <li class="fc30">--</li>
		            <li class="fc100">${flight.depDay}<br /><span>${flight.depTime}-${flight.arrTime}</span></li>
		            <li class="fc120">${flight.boardPointName}<br />${flight.offPointName}</li>
		            <li class="fc60">${flight.mileage}公里</li>
		            <li class="fc60">${flight.flightTime}</li>
		            <li class="fc30">${flight.stop}</li>
		            <div id="clear"></div>
		        </div>
			</c:forEach>
		</c:if>&nbsp;
        
    </div>
	
    <div id="check_msg">
    	<div id="title_c">
            <li class="f100">旅客类型</li>
            <li class="f80">价格</li>
            <li class="f50">退改签</li>
            <li class="f50">机建</li>
            <li class="f50">燃油</li>
            <li class="f50">保险</li>
            <li class="f80">保险份数</li>
            <li class="f100">合计</li>
            <div id="clear"></div>
     	</div>
       
       <c:forEach var="passenger" items="${bOrder.passengers}">
			<div id="content_c">
	            <li class="f100">
					<fmt:message key="passenger.ageType${passenger.ageType }"></fmt:message>
	            </li>
	            <li class="fc80"><span>￥${passenger.ticketPtice}</span></li>
	            <li class="fc80"><span style="cursor:pointer" title="更改条件:需每次收取票面价10%的改签费<br>退票条件:需收取票面价20%的退票费<br>签转条件:不允许签转">退改签</span></li>
	            <li class="fc50"><span>￥${passenger.constructionFee}</span></li>
	            <li class="fc50"><span>￥${passenger.fuelTax}</span></li>
	            <li class="fc50"><span>￥${passenger.bxPrice}</span></li>
	            <li class="fc80"><span>${passenger.insuranceCount}</span></li>
	            <li class="fc100"><span>￥${passenger.totalPrice }</span></li>
	            <div id="clear"></div>
	        </div>
		</c:forEach>
	        
		<div id="content_c">
				<li class="fc80">&nbsp;</li>
	            <li class="fc80">&nbsp;</li>
	            <li class="fc80">&nbsp;</li>
	            <li class="fc50">&nbsp;</li>
	            <li class="fc50">&nbsp;</li>
	            <li class="fc50">&nbsp;<span>人数:${fn:length(bOrder.passengers)}</span></li>
	            <li class="fc80">&nbsp;<span>快递:￥${bOrder.xcdPrice}</span></li>
	            <li class="fc100">&nbsp;<span>总价:￥${bOrder.allPrice}</span></li>
	            <div id="clear"></div>
	        </div>
		

    </div> 
            <div id="check_guest">
            	<div id="title_c">
                <li>乘机人数：${fn:length(bOrder.passengers)}人</li>
                </div>
                
                <c:forEach var="passenger" items="${bOrder.passengers}">
                <div id="content_c">
                <ul>
                <li class="w40">
				<fmt:message key="passenger.ageType${passenger.ageType }"></fmt:message>
				：${passenger.name}</li>
                <li class="w40"><fmt:message key="passenger.cardType${passenger.cardType }"></fmt:message>：${passenger.cardNum}</li>
                <li class="w20">票号:${passenger.eticketNum}</li>
                <div id="clear"></div>
                </ul>
                <ul>
                <li class="w40">保险公司：${passenger.bxSource}</li>
                <li class="w30">保险价格：${passenger.bxPrice}</li>
                <li class="w30">份数:${passenger.insuranceCount}</li>
                <div id="clear"></div>
                </ul>
                <ul>
                <li class="w40">保单号：
                	<c:forEach var="insurance" items="${passenger.insurances}">
					${insurance.insuranceNo}/
					</c:forEach>
                </li>
                <li class="w60">状态：
                <span>
                <fmt:message key="bOrder.status${bOrder.status }"></fmt:message>
                </span></li>
                <div id="clear"></div>
                </ul>
                <div id="clear"></div>
                </div>
                </c:forEach>
                
            </div>
            
            	<div id="check_linkman">
                    <div id="title_c">
                    <li>联系人：</li>
                    </div>
                    <div id="content_c">
                    <li class="w40">联系人：<span>${bOrder.contact}</span></li>
                    <li class="w30">手机：<span>${bOrder.contactMob}</span></li>
                    <li class="w30">电子邮件：<span>${bOrder.contactEmail}</span></li>
                    <div id="clear"></div>
                    </div>
                </div>
                
                <div id="check_bx">
                    <div id="title_c">
                    <li>报销信息：</li>
                    </div>
                    <c:if test="${not empty bOrder.expType}">
                      <div id="content_c">
                    <li class="w40">快递方式：<span><fmt:message key="bOrder.expType${bOrder.expType}"></fmt:message></span></li>
                    <li class="w30">快递公司：<span>${bOrder.company}</span></li>
                    <li class="w30">快递号：${bOrder.orderNumber}</li>
                    <div id="clear"></div>
                    <li class="w40">快递日期：<span><fmt:formatDate value="${bOrder.sendtime}" pattern="yyyy-MM-dd" /></span></li>
                    <li class="w30">收件人：<span>${bOrder.sjr}</span></li>
                    <li class="w30">电话：${bOrder.contactTel}</li>
                    <div id="clear"></div>
                     <li class="w40">地址：<span>${bOrder.address}</span></li>
                    <div id="clear"></div>
                </div>
                </c:if>
                
</div>
</div>
</body>
</html>

